<template>
  <div class="page-container">
    <!-- 顶部标题 -->
    <div class="header-title">
      <span class="current-date">2023年4月22日</span>
      <h1>智慧配载系统领导驾驶舱</h1>
    </div>

    <!-- 主要内容区域 -->
    <div class="content-wrapper">
      <!-- 左侧区域 -->
      <div class="left-panel">
        <!-- 前/后场出效率区域 -->
        <div class="efficiency-section">
          <h3>前/后场出效率</h3>
          <div class="search-bar">
            <el-input v-model="searchQuery" placeholder="输入库位/垛位编号" size="small" class="search-input" />
            <el-button type="primary" size="small" class="search-btn">搜索</el-button>
          </div>
          
          <!-- 区域效率展示 -->
          <div class="area-efficiency">
            <div class="area-item">
              <span class="area-label">A区</span>
              <div class="progress-bar">
                <div class="progress-fill a-progress"></div>
              </div>
              <span class="area-value">99吨/小时</span>
            </div>
            <div class="area-item">
              <span class="area-label">B区</span>
              <div class="progress-bar">
                <div class="progress-fill b-progress"></div>
              </div>
              <span class="area-value">68吨/小时</span>
            </div>
            <div class="area-item">
              <span class="area-label">C区</span>
              <div class="progress-bar">
                <div class="progress-fill c-progress"></div>
              </div>
              <span class="area-value">30吨/小时</span>
            </div>
            <div class="area-item">
              <span class="area-label">D区</span>
              <div class="progress-bar">
                <div class="progress-fill d-progress"></div>
              </div>
              <span class="area-value">21吨/小时</span>
            </div>
            <div class="area-item">
              <span class="area-label">E区</span>
              <div class="progress-bar">
                <div class="progress-fill e-progress"></div>
              </div>
              <span class="area-value">8吨/小时</span>
            </div>
          </div>
          
          <!-- 总体出库效率 -->
          <div class="total-efficiency">
            <div class="efficiency-item">
              <div class="efficiency-icon">
                <i class="el-icon-cpu"></i>
              </div>
              <div class="efficiency-info">
                <span class="efficiency-text">总出库效率</span>
                <span class="efficiency-value">85吨/小时</span>
              </div>
            </div>
          </div>
        </div>

        <!-- 垛位货物区域 -->
        <div class="storage-section">
          <h3>垛位货物</h3>
          <div class="storage-items">
            <div class="storage-item">
              <div class="storage-header">
                <span class="storage-id">A-205</span>
                <span class="storage-count">205</span>
              </div>
              <div class="storage-cards">
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">钢材-堆位</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">钢材-仓位</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
                <!-- 重复的存储卡片 -->
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">A-205</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">A-205-堆位</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">A-205-仓位</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
                <div class="storage-card">
                  <div class="card-icon">
                    <i class="el-icon-box"></i>
                  </div>
                  <div class="card-info">
                    <span class="card-text">A-205</span>
                    <span class="card-value">85.00%</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <!-- 中间区域 -->
      <div class="center-panel">
        <!-- 24小时在港船舶作业动态 -->
        <div class="vessel-section">
          <h3>24小时在港船舶作业动态</h3>
          <div class="vessel-table">
            <table>
              <thead>
                <tr>
                  <th>泊位</th>
                  <th>船名</th>
                  <th>货种</th>
                  <th>预测(卸)货量</th>
                  <th>靠泊时间</th>
                  <th>开工时间</th>
                  <th>预计完工时间</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>B-12</td>
                  <td>明金2号</td>
                  <td>铁矿石</td>
                  <td>85,000吨</td>
                  <td>2023-08-15 08:30:00</td>
                  <td>2023-08-15 09:15:00</td>
                  <td>2023-08-16 20:00:00</td>
                </tr>
                <tr>
                  <td>A-05</td>
                  <td>利航7号</td>
                  <td>煤炭</td>
                  <td>65,000吨</td>
                  <td>2023-08-15 14:23:00</td>
                  <td>2023-08-15 15:00:00</td>
                  <td>2023-08-16 22:00:00</td>
                </tr>
                <tr>
                  <td>C-08</td>
                  <td>利航7号</td>
                  <td>原油</td>
                  <td>12,000吨</td>
                  <td>2023-08-16 07:45:00</td>
                  <td>2023-08-16 08:30:00</td>
                  <td>2023-08-17 14:00:00</td>
                </tr>
                <tr>
                  <td>D-03</td>
                  <td>利航7号</td>
                  <td>集装箱</td>
                  <td>2,500 TEU</td>
                  <td>2023-08-16 11:15:00</td>
                  <td>2023-08-16 12:00:00</td>
                  <td>2023-08-17 18:00:00</td>
                </tr>
                <tr>
                  <td>E-09</td>
                  <td>利航7号</td>
                  <td>粮食</td>
                  <td>45,000吨</td>
                  <td>2023-08-17 09:30:00</td>
                  <td>2023-08-17 10:15:00</td>
                  <td>2023-08-18 12:00:00</td>
                </tr>
                <tr>
                  <td>F-11</td>
                  <td>利航7号</td>
                  <td>液化气</td>
                  <td>30,000吨</td>
                  <td>2023-08-17 14:45:00</td>
                  <td>2023-08-17 15:30:00</td>
                  <td>2023-08-18 21:00:00</td>
                </tr>
                <tr>
                  <td>G-02</td>
                  <td>利航7号</td>
                  <td>钢材</td>
                  <td>55,000吨</td>
                  <td>2023-08-18 09:15:00</td>
                  <td>2023-08-18 09:30:00</td>
                  <td>2023-08-19 16:00:00</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>

        <!-- 船舶作业进度 -->
        <div class="operation-section">
          <div class="operation-header">
            <h3>船舶作业进度</h3>
            <div class="ship-tabs">
              <el-radio-group v-model="currentShip">
                <el-radio-button label="明金2号">明金2号</el-radio-button>
                <el-radio-button label="绝日号">绝日号</el-radio-button>
              </el-radio-group>
            </div>
          </div>
          
          <div class="ship-progress">
            <div class="progress-header">
              <span class="ship-name">明金2号</span>
              <span class="operation-rate">已完成: 3,200吨</span>
              <span class="total-rate">整体作业进度: 65%</span>
              <span class="efficiency">装卸效率: 85吨/小时</span>
            </div>
            
            <div class="progress-bar-large">
              <div class="progress-fill-large"></div>
            </div>
            
            <div class="operation-details">
              <span class="detail-label">剩余: 1,900吨</span>
            </div>
          </div>
          
          <!-- 绝日号货种作业进度 -->
          <div class="cargo-progress">
            <h4>绝日号 货种</h4>
            <div class="cargo-items">
              <div class="cargo-item">
                <div class="cargo-info">
                  <span class="cargo-name">1号舱 - 钢材</span>
                  <span class="cargo-efficiency">85吨/小时</span>
                  <span class="cargo-plan">1,200/930吨</span>
                </div>
                <div class="cargo-progress-bar">
                  <div class="cargo-progress-fill green-progress"></div>
                </div>
                <span class="cargo-percentage">78%</span>
              </div>
              
              <div class="cargo-item">
                <div class="cargo-info">
                  <span class="cargo-name">2号舱 - 木材</span>
                  <span class="cargo-efficiency">85吨/小时</span>
                  <span class="cargo-plan">1,200/930吨</span>
                </div>
                <div class="cargo-progress-bar">
                  <div class="cargo-progress-fill orange-progress"></div>
                </div>
                <span class="cargo-percentage">65%</span>
              </div>
              
              <div class="cargo-item">
                <div class="cargo-info">
                  <span class="cargo-name">3号舱 - 设备</span>
                  <span class="cargo-efficiency">85吨/小时</span>
                  <span class="cargo-plan">1,200/930吨</span>
                </div>
                <div class="cargo-progress-bar">
                  <div class="cargo-progress-fill red-progress"></div>
                </div>
                <span class="cargo-percentage">45%</span>
              </div>
              
              <div class="cargo-item">
                <div class="cargo-info">
                  <span class="cargo-name">4号舱 - 钢材</span>
                  <span class="cargo-efficiency">85吨/小时</span>
                  <span class="cargo-plan">1,200/930吨</span>
                </div>
                <div class="cargo-progress-bar">
                  <div class="cargo-progress-fill green-progress"></div>
                </div>
                <span class="cargo-percentage">82%</span>
              </div>
            </div>
          </div>
          
          <!-- 操作按钮 -->
          <div class="operation-buttons">
            <el-button type="primary" size="small">人力设备</el-button>
            <el-button type="primary" size="small">作业进度</el-button>
            <el-button type="primary" size="small">运营数据</el-button>
          </div>
        </div>
      </div>

      <!-- 右侧区域 -->
      <div class="right-panel">
        <!-- 异常情况汇总 -->
        <div class="exception-section">
          <h3>异常情况汇总</h3>
          <div class="exception-stats">
            <div class="exception-icon">
              <i class="el-icon-warning"></i>
            </div>
            <div class="exception-info">
              <span class="exception-text">今日异常总数</span>
              <span class="exception-value">8</span>
            </div>
          </div>
          <div class="exception-details">
            <div class="exception-item">
              <span class="exception-label">未处理</span>
              <span class="exception-count">3</span>
            </div>
            <div class="exception-item">
              <span class="exception-label">已处理</span>
              <span class="exception-count">5</span>
            </div>
          </div>
        </div>

        <!-- 实时预警 -->
        <div class="warning-section">
          <h3>实时预警</h3>
          <div class="warning-items">
            <div class="warning-item">
              <div class="warning-header">
                <span class="warning-type">断链预警</span>
                <span class="warning-time">45分钟</span>
              </div>
              <div class="warning-content">
                <span class="warning-text">新增设备</span>
                <span class="warning-value">预计影响效率: 15吨/小时</span>
              </div>
            </div>
            
            <div class="warning-item">
              <div class="warning-header">
                <span class="warning-type">扫描超时</span>
                <span class="warning-time">22分钟</span>
              </div>
              <div class="warning-content">
                <span class="warning-text">工位: D-12-08</span>
                <span class="warning-value">工人: 王建军(工号: 10346)</span>
              </div>
            </div>
          </div>
        </div>

        <!-- 锚地船舶 -->
        <div class="anchorage-section">
          <div class="section-header">
            <h3>锚地船舶</h3>
            <div class="tabs">
              <el-radio-group v-model="currentTab">
                <el-radio-button label="预测到港">预测到港</el-radio-button>
              </el-radio-group>
            </div>
          </div>
          
          <div class="anchorage-table">
            <table>
              <thead>
                <tr>
                  <th>船名</th>
                  <th>货种</th>
                  <th>船长(m)</th>
                  <th>舱口</th>
                  <th>到港时间</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>明金号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>明海号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>明发号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>晴芳号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>明金2号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>明芳号</td>
                  <td>铁矿</td>
                  <td>275 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
                <tr>
                  <td>晴金号</td>
                  <td>铁矿</td>
                  <td>225 m</td>
                  <td>5</td>
                  <td>2023-08-15</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

// 搜索查询
const searchQuery = ref('');

// 当前选中的船舶
const currentShip = ref('明金2号');

// 当前选中的标签
const currentTab = ref('预测到港');
</script>

<style scoped lang="less">
/* 基础样式 */
.page-container {
  padding: 20px;
  background: #0d1b2a;
  color: #e0e0e0;
  min-height: 100vh;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* 头部标题 */
.header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e3a5f;

  .current-date {
    font-size: 16px;
    color: #8ab4f8;
  }

  h1 {
    font-size: 24px;
    color: #ffffff;
    margin: 0;
  }
}

/* 内容包装器 */
.content-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
  min-height: calc(100vh - 100px);
}

/* 面板通用样式 */
.left-panel, .center-panel, .right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

/* 区域标题 */
h3 {
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 15px 0;
  padding-left: 10px;
  border-left: 3px solid #1976d2;
}

h4 {
  font-size: 14px;
  color: #e0e0e0;
  margin: 10px 0;
}

/* 效率区域 */
.efficiency-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-input {
  flex: 1;
  background: #0d1b2a;
  border: 1px solid #1e3a5f;
  color: #e0e0e0;

  ::v-deep(.el-input__inner) {
    background: #0d1b2a;
    border: 1px solid #1e3a5f;
    color: #e0e0e0;
  }
}

.search-btn {
  background: #1976d2;
  border: none;

  &:hover {
    background: #1565c0;
  }
}

/* 区域效率 */
.area-efficiency {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.area-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.area-label {
  font-size: 14px;
  width: 30px;
  color: #e0e0e0;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #0d1b2a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
}

.a-progress { width: 99%; background: #4caf50; }
.b-progress { width: 68%; background: #2196f3; }
.c-progress { width: 30%; background: #ff9800; }
.d-progress { width: 21%; background: #795548; }
.e-progress { width: 8%; background: #f44336; }

.area-value {
  font-size: 12px;
  width: 60px;
  text-align: right;
  color: #8ab4f8;
}

/* 总体出库效率 */
.total-efficiency {
  background: #0d1b2a;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
}

.efficiency-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.efficiency-icon {
  background: #1976d2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
}

.efficiency-info {
  flex: 1;
}

.efficiency-text {
  display: block;
  font-size: 12px;
  color: #8ab4f8;
}

.efficiency-value {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

/* 垛位货物区域 */
.storage-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  flex: 1;
  overflow-y: auto;
}

.storage-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.storage-item {
  background: #0d1b2a;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
}

.storage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.storage-id {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

.storage-count {
  font-size: 12px;
  color: #1976d2;
  background: rgba(25, 118, 210, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
}

.storage-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.storage-card {
  background: #16213e;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #1e3a5f;
}

.card-icon {
  width: 30px;
  height: 30px;
  background: #1976d2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 5px;
}

.card-info {
  text-align: center;
}

.card-text {
  display: block;
  font-size: 11px;
  color: #8ab4f8;
}

.card-value {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #4caf50;
}

/* 中间面板 - 船舶区域 */
.center-panel {
  overflow-y: auto;
}

.vessel-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  margin-bottom: 20px;
}

.vessel-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: #0d1b2a;
  color: #8ab4f8;
  font-weight: bold;
  padding: 8px;
  text-align: left;
  border-bottom: 2px solid #1e3a5f;
}

td {
  padding: 8px;
  color: #e0e0e0;
  border-bottom: 1px solid #1e3a5f;
}

/* 船舶作业进度 */
.operation-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
}

.operation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.ship-tabs {
  ::v-deep(.el-radio-button__inner) {
    background: #0d1b2a;
    border: 1px solid #1e3a5f;
    color: #e0e0e0;
  }
  
  ::v-deep(.el-radio-button__orig-radio:checked + .el-radio-button__inner) {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
  }
}

/* 船舶进度 */
.ship-progress {
  background: #0d1b2a;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
  margin-bottom: 15px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.ship-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

.operation-rate, .total-rate, .efficiency {
  font-size: 12px;
  color: #8ab4f8;
}

.progress-bar-large {
  height: 10px;
  background: #0d1b2a;
  border: 1px solid #1e3a5f;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill-large {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #1976d2 0%, #4caf50 100%);
  border-radius: 5px;
}

.operation-details {
  text-align: right;
}

.detail-label {
  font-size: 12px;
  color: #e0e0e0;
}

/* 货种作业进度 */
.cargo-progress {
  margin-bottom: 15px;
}

.cargo-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cargo-item {
  background: #0d1b2a;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
}

.cargo-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.cargo-name {
  font-size: 12px;
  color: #ffffff;
  flex: 1;
}

.cargo-efficiency, .cargo-plan {
  font-size: 11px;
  color: #8ab4f8;
}

.cargo-progress-bar {
  height: 6px;
  background: #0d1b2a;
  border: 1px solid #1e3a5f;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.cargo-progress-fill {
  height: 100%;
  border-radius: 3px;
}

.green-progress { background: #4caf50; }
.orange-progress { background: #ff9800; }
.red-progress { background: #f44336; }

.cargo-percentage {
  font-size: 11px;
  color: #e0e0e0;
  float: right;
}

/* 操作按钮 */
.operation-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* 右侧面板 */
.exception-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  margin-bottom: 20px;
}

.exception-stats {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.exception-icon {
  background: #f44336;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
}

.exception-info {
  flex: 1;
}

.exception-text {
  display: block;
  font-size: 12px;
  color: #8ab4f8;
}

.exception-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #f44336;
}

.exception-details {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.exception-item {
  text-align: center;
}

.exception-label {
  display: block;
  font-size: 11px;
  color: #8ab4f8;
}

.exception-count {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #e0e0e0;
}

/* 实时预警 */
.warning-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  margin-bottom: 20px;
}

.warning-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.warning-item {
  background: #0d1b2a;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1e3a5f;
}

.warning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.warning-type {
  font-size: 12px;
  font-weight: bold;
  color: #f44336;
}

.warning-time {
  font-size: 11px;
  color: #8ab4f8;
  background: rgba(244, 67, 54, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
}

.warning-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warning-text {
  font-size: 11px;
  color: #e0e0e0;
}

.warning-value {
  font-size: 11px;
  color: #8ab4f8;
}

/* 锚地船舶 */
.anchorage-section {
  background: #16213e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tabs {
  ::v-deep(.el-radio-button__inner) {
    background: #0d1b2a;
    border: 1px solid #1e3a5f;
    color: #e0e0e0;
  }
  
  ::v-deep(.el-radio-button__orig-radio:checked + .el-radio-button__inner) {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
  }
}

.anchorage-table {
  flex: 1;
  overflow-y: auto;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1b2a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #1976d2;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

/* 响应式布局 */
@media (max-width: 1400px) {
  .content-wrapper {
    grid-template-columns: 220px 1fr 220px;
  }
}

@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  
  .left-panel, .right-panel {
    flex-direction: row;
  }
  
  .efficiency-section, .storage-section, .exception-section, .warning-section, .anchorage-section {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
  
  .header-title {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .left-panel, .right-panel {
    flex-direction: column;
  }
  
  .progress-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cargo-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .operation-buttons {
    flex-direction: column;
  }
}
</style>